﻿using My_Patient.DataModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace My_Patient.Repository
{
    public class Repository<T> : IRepository<T> where T : class
    {
        public PatientEntities context;
        public Repository(PatientEntities context)
        {
            this.context = context;
        }
        public void Add(T entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(T entity)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<T> FindAll(Func<T, bool> exp)
        {
            throw new NotImplementedException();
        }

        public void Save()
        {
            throw new NotImplementedException();
        }
    }
    public interface IRepository<T> where T : class
    {
        IEnumerable<T> FindAll(Func<T, bool> exp);
        void Add(T entity);
        void Delete(T entity);
        void Save();
    }
}
